﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.hq
{
    /// <summary>
    /// 企业表
    /// </summary>
    public class Enterprise
    {
        /// <summary>
        /// 企业id
        /// </summary>
        [Key]
        public int EnterpriseId { get; set; }

        /// <summary>
        /// 企业名称
        /// </summary>
        [StringLength(50)]
        public string EnterpriseName { get; set; } = string.Empty;

        /// <summary>
        /// 企业简称
        /// </summary
        [StringLength(50)]
        public string EnterpriseAbbreviation { get; set; } = string.Empty;

        /// <summary>
        /// 企业logo
        /// </summary>
        [StringLength(1000)]
        public string CorporateLogo { get; set; } = string.Empty;

        /// <summary>
        /// 企业详细地址
        /// </summary>
        [StringLength(1000)]
        public string DetailedAddress { get; set; } = string.Empty;

        /// <summary>
        /// 企业电话
        /// </summary>
        [StringLength(11)]
        public string EnterprisePhone { get; set; } = string.Empty;

        /// <summary>
        /// 统一社会信用代码
        /// </summary>
        [StringLength(50)]
        public string SocialCredit { get; set; } = string.Empty;

        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(50)]
        public string Describe { get; set; } = string.Empty;

        /// <summary>
        /// 停用企业 1-停用 2-禁用
        /// </summary>
        public int DefunctEnterprise { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string Principal { get; set; } = string.Empty;

        /// <summary>
        /// 财务负责人
        /// </summary>
        [StringLength(50)]
        public string FinancePrincipal { get; set; } = string.Empty;

        /// <summary>
        /// 分管负责人
        /// </summary>
        [StringLength(50)]
        public string ResponsiblePerson { get; set; } = string.Empty;

        /// <summary>
        /// 可查看人员
        /// </summary>
        [StringLength(50)]
        public string Superintendent { get; set; } = string.Empty;

    }
}
